<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title|default:"Kyo Site"}</title>
</head>
<body>
Time: {time()} <br />
strlen $title: {strlen($title)} <br />
capitalize: {$title|upper|lower} <br />

<table border="1" width = "100%">
    <caption>$_SERVER</caption>
    <tr>
        <th>键名</th>
        <th>值</th>
    </tr>
    {foreach $smarty.server as $k => $r}
    <tr>
    	<td>{$k}</td>
    	<td>{$r}</td>
    </tr>
    {/foreach}
</table>

<table border="1" width = "100%">
    <caption>学生信息表</caption>
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>
    </tr>
    {foreach $data as $r}
    <tr>
        {foreach $r as $c}
            <td>{$c}</td>
        {/foreach}
    </tr>
    {/foreach}
</table>

</body>
</html>
